try {
    mvm.currentPage = location.pathname;
    new Vue();
} catch(e) {
    console.log(e);
    location.href="/";
    sessionStorage.setItem('currentPage', location.pathname);
}